package com.test.demo.main.fragment;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.test.demo.R;
import com.test.demo.base.BaseBottomFragment;
import com.test.demo.bean.LikeBean;
import com.test.demo.main.adapter.LikeAdapter;

import java.util.ArrayList;
/** 点赞 */
public class LikeFragment extends BaseBottomFragment {

    RecyclerView recycler_view;

    ArrayList datas = new ArrayList<LikeBean>();

    LikeAdapter mAdapter;

    @Override
    protected int getContentViewId() {
        return R.layout.fragment_like;
    }

    @Override
    protected void findViews() {
        recycler_view = findViewByIds(R.id.recycler_view);
    }

    @Override
    public void initGetData() {
        datas.clear();

        datas.add(new LikeBean("刚刚", 1, "", R.drawable.example_profileimg, R.drawable.cg_icon_sex, R.drawable.logo_head));
        datas.add(new LikeBean("刚刚", 0, "", R.drawable.girl, R.drawable.female, 0));
        datas.add(new LikeBean("刚刚", 0, "", R.drawable.example_profileimg, R.drawable.cg_icon_sex, 0));

        mAdapter = new LikeAdapter(datas);
        recycler_view.setLayoutManager(new LinearLayoutManager(getActivity()));
        recycler_view.setAdapter(mAdapter);
    }

    @Override
    protected void init() {

    }

    @Override
    protected void widgetListener() {

    }
}
